import request from '@/utils/request'
// 查询用户列表
export function getUserListAPI(params) {
  return request({
    url: '/parking/card/list',
    method: 'get',
    params
  })
}

/**
 * 添加接口
 */

export function addUserAPI(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}

// 删除接口
export function delUserAPI(id) {
  return request({
    url: `/parking/card/${id}`,
    method: 'delete'
  })
}

// 详情：数据回显
export function getCardDetailAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`
  })
}

// 编辑接口
export function editCardAPI(data) {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data
  })
}

